package cn.itcast.jvm.t3.jit;

import java.io.IOException;

public class JIT1 {

    // -XX:+PrintCompilation -XX:-DoEscapeAnalysis//关闭逃逸分析，不会修改没有引用的代码《禁止内联》
    public static void main(String[] args) throws IOException {
        for (int i = 0; i < 20; i++) {
            long start = System.nanoTime();
            for (int j = 0; j < 100; j++) {
                //new Object();
                System.in.read();
            }
            long end = System.nanoTime();
            System.out.printf("%d\t%d\n",i,(end - start));
        }
    }
}
